package xyz.thoughtset.viewer.common.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class IdMeta {
    @TableId(type = IdType.ASSIGN_ID)
    protected String id;
    protected String pid;
    protected String groupId;
    @TableField(updateStrategy = FieldStrategy.NEVER,fill = FieldFill.INSERT)
    protected Date createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @OrderBy(sort = 1)
    protected Date updatedAt;

}
